package cn.wolfcode.mapper;

import cn.wolfcode.domain.ActivityItem;
import cn.wolfcode.qo.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface ActivityItemMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ActivityItem record);

    ActivityItem selectByPrimaryKey(Long id);

    List<ActivityItem> selectAll();

    int updateByPrimaryKey(ActivityItem record);

    List<ActivityItem> selectForList(QueryObject qo);

    List<ActivityItem> selectByActivityId(Long id);
    int  selectCount(Long id);
    void  insertRelation(@Param("empId") Long empId, @Param("actId") Long actId, @Param("create_time") Date create_time);

    void updateNumByActivityItemId(Long optionsRadios);
}